Current Location: Home> Function Categories> log10

log10

Logarithm with base 10
Name:log10
Category:math
Programming Language:php
One-line Description:Logarithm with base 10.

Definition and usage

log10() has a logarithm with base 10.

Example

In this example, we apply the log10() function to different numbers:

 <?php
echo ( log10 ( 2.7183 ) ) ;
echo ( log10 ( 2 ) ) ;
echo ( log10 ( 1 ) ) ;
echo ( log10 ( 0 ) ) ;
echo ( log10 ( - 1 ) ) ;
?>

Try it yourself

grammar

 log10 ( x )
parameter describe
x Required. A number.

illustrate

Returns the logarithm of parameter x with base 10.

Similar Functions
  • Find the minimum value min

    min

    Findtheminimumvalue
  • Antihyperbolic tangent atanh

    atanh

    Antihyperbolictangen
  • Convert hexadecimal to decimal hexdec

    hexdec

    Converthexadecimalto
  • Sow a better random number generator seed mt_srand

    mt_srand

    Sowabetterrandomnumb
  • Generate a random integer rand

    rand

    Generatearandominteg
  • Inverse hyperbolic sine asinh

    asinh

    Inversehyperbolicsin
  • Square root sqrt

    sqrt

    Squareroot
  • Anyway atan

    atan

    Anyway
Popular Articles